package org.azmat.demoredis.RedisTemplate.RedisSQL;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Schema(description = "图书实体类")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Book implements Serializable {
    @Schema(description = "图书编号")
    private int id;
    @Schema(description = "图书名称")
    private String name;
    @Schema(description = "图书价格")
    private double price;
    @Schema(description = "图书出版社")
    private String category;
    @Schema(description = "图书库存")
    private int pnum;
    @Schema(description = "图书图片地址")
    private String imgurl;
    @Schema(description = "图书描述")
    private String description;
    @Schema(description = "图书作者")
    private String author;
    @Schema(description = "图书销量")
    private String sales;
}
